package com.bytz.modules.cms.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bytz.common.entity.IEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 莱宝CMS—订单管理-订单流程规则表
 * </p>
 *
 * @author shanxuezhong
 * @since 2022-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cms_order_flow_rule")
@ApiModel(value = "OrderFlowRule对象", description = "莱宝CMS—订单管理-订单流程规则表")
public class OrderFlowRule implements Serializable, IEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "节点名称")
    private String activityName;

    @ApiModelProperty(value = "流程变量名称")
    private String flowVarName;

    @ApiModelProperty(value = "脚本类型")
    private String type;

    @ApiModelProperty(value = "脚本内容")
    private String script;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "版本")
    private Integer version;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
